﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Dukou.Javascript
{
    /// <summary>
    /// 变量
    /// </summary>
    [Serializable]
    public class JsVar
    {
        public JsVar(string name)
        {
            this.Name = name;
        }

        /// <summary>
        /// 
        /// </summary>
        public string Name { get; private set; }

        public JsValue Value { get; set; }

        public override string ToString()
        {
            return this.Name;
        }
    }
}
